package cn.edu.neusoft.wuguangsheng.flowerimpression.model;

import java.util.Map;

import cn.edu.neusoft.wuguangsheng.flowerimpression.bean.SuccessBean;
import cn.edu.neusoft.wuguangsheng.flowerimpression.iface.AddSheQuInfoIface;
import cn.edu.neusoft.wuguangsheng.flowerimpression.listener.TListener;
import cn.edu.neusoft.wuguangsheng.flowerimpression.service.AllService;
import okhttp3.RequestBody;
import retrofit2.Call;
import retrofit2.Retrofit;

public class AddSheQuInfoModel extends RetrofitBaseModel implements AddSheQuInfoIface<SuccessBean> {
    private AllService allService;
    private Retrofit retrofit;
    public AddSheQuInfoModel(){
        retrofit=getRetrofit();
        allService=getAllService();
    }
    @Override
    public void addSheQuInfo(Map<String, RequestBody> map, String userid, String content,String address, TListener<SuccessBean> tListener) {
        Call<SuccessBean> call = allService.addSheQuInfo(map,userid,content,address);
        callenqueue(call,tListener);
    }

    @Override
    public void addSheQuMessage(String userid, String content,String address, TListener<SuccessBean> tListener) {
        Call<SuccessBean> call = allService.addSheQuMessage(userid,content,address);
        callenqueue(call,tListener);
    }
}
